<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>用户管理</title>
</head>
<body>
  <%@ include file="/common/islogin.jsp" %>
    <%@ include file="/common/header.jsp" %>
    <div align="center">
      <table width="80%" border="1" align="center">
        <tr align="right">
          <td colspan="4">
            <a href="adminindex.jsp">首页&nbsp;</a>
            <a href="adminlogoff">注销登陆&nbsp;</a>
          </td>
        </tr>
        <tr bgcolor="#0099CC">
         <td colspan="4">
           <form action="searchuser" method="post">
                                       请输入您要搜索的用户名：
               <input type="text" name="username" size="15" maxlength="50">
               <input type="submit" value="提交">
           </form>
         </td>
        </tr>
        <tr align="center">
          <td colspan="4">
                                          用户管理
          </td>
        </tr>
        <tr align="center" bgcolor="#0099CC">
           <td width="25%">用户名</td>
           <td width="25%">级别  </td>
           <td width="25%">编辑</td>
           <td width="25%">删除  </td>
        </tr>
        <c:forEach items="${ users}" var="user">
          <tr align="center">
            <td>${user.username }</td>
            <td> ${user.grade }</td>
            <td><a href="useredit?username=${user.username }">编辑</a></td>
            <td><a href="userdelete?username=${user.username }">删除</a></td>
          </tr>
        </c:forEach>
      </table>
    </div>
    <%@ include file="/common/footer.jsp" %>
</body>
</html>